<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 149 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts149p0{position:absolute;left:106px;top:97px;}
 .ts149p1{position:absolute;left:352px;top:97px;}
 .ts149p3{position:absolute;left:665px;top:97px;}
 .ts149p7{position:absolute;left:106px;top:113px;}
 .ts149p8{position:absolute;left:706px;top:1026px;}
 .ts149p9{position:absolute;left:331px;top:1044px;}
 .ts149p13{position:absolute;left:106px;top:146px;}
 .ts149p15{position:absolute;left:106px;top:164px;}
 .ts149p16{position:absolute;left:106px;top:183px;}
 .ts149p17{position:absolute;left:106px;top:201px;}
 .ts149p20{position:absolute;left:106px;top:220px;}
 .ts149p21{position:absolute;left:106px;top:239px;}
 .ts149p23{position:absolute;left:106px;top:257px;}
 .ts149p24{position:absolute;left:106px;top:275px;}
 .ts149p26{position:absolute;left:106px;top:293px;}
 .ts149p27{position:absolute;left:106px;top:311px;}
 .ts149p29{position:absolute;left:106px;top:330px;}
 .ts149p31{position:absolute;left:106px;top:348px;}
 .ts149p33{position:absolute;left:106px;top:366px;}
 .ts149p35{position:absolute;left:106px;top:384px;}
 .ts149p37{position:absolute;left:106px;top:402px;}
 .ts149p38{position:absolute;left:106px;top:420px;}
 .ts149p40{position:absolute;left:106px;top:439px;}
 .ts149p41{position:absolute;left:106px;top:457px;}
 .ts149p43{position:absolute;left:106px;top:475px;}
 .ts149p44{position:absolute;left:106px;top:494px;}
 .ts149p46{position:absolute;left:106px;top:512px;}
 .ts149p47{position:absolute;left:106px;top:531px;}

 /* Font Styles */
 .ft0p149{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p149{font-weight:normal;}
 .ft2p149{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p149{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p149{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p149{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p149{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground149{position:absolute;left:97px;top:237px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index148.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;149 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index150.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground149><img src="./background149.png" width="633" height="818" border="0" alt=""></div>
<div class=ts149p0><span class="ft0p149"> </span></div>
<div class=ts149p1><span class="ft0p149">Gravitybox Schedule Primer<span class="ft1p149"> </span></span></div>
<div class=ts149p3><span class="ft0p149">Page 147&nbsp; </span></div>
<div class=ts149p7><span class="ft2p149"> </span></div>
<div class=ts149p8><span class="ft3p149"> </span></div>
<div class=ts149p9><span class="ft4p149">1998&#45;2004 Gravitybox Software LLC<span class="ft3p149"> </span></span></div>
<div class=ts149p13><span class="ft5p149">To make sure that our menus are always up to date, we will need a method that </span></div>
<div class=ts149p15><span class="ft5p149">enables the menu system when required. If there is an active child form, the save and </span></div>
<div class=ts149p16><span class="ft5p149">print menus should be enabled. However, if there is no active child form these should </span></div>
<div class=ts149p17><span class="ft5p149">be disabled, since it make no since to save or print nothing. </span></div>
<div class=ts149p20><span class="ft5p149"> </span></div>
<div class=ts149p21><span class="ft6p149">Private Sub UpdateMenu() </span></div>
<div class=ts149p23><span class="ft6p149"> </span></div>
<div class=ts149p24><span class="ft6p149">Dim bHasChild As Boolean </span></div>
<div class=ts149p26><span class="ft6p149"> </span></div>
<div class=ts149p27><span class="ft6p149">&nbsp; bHasChild = Not (Me.ActiveForm Is Nothing) </span></div>
<div class=ts149p29><span class="ft6p149">&nbsp;&nbsp; </span></div>
<div class=ts149p31><span class="ft6p149">&nbsp; mnuFileClose.Enabled = bHasChild </span></div>
<div class=ts149p33><span class="ft6p149">&nbsp; mnuFileSave.Enabled = bHasChild </span></div>
<div class=ts149p35><span class="ft6p149">&nbsp; mnuFilePrint.Enabled = bHasChild </span></div>
<div class=ts149p37><span class="ft6p149"> </span></div>
<div class=ts149p38><span class="ft6p149">End Sub </span></div>
<div class=ts149p40><span class="ft5p149"> </span></div>
<div class=ts149p41><span class="ft5p149">All of this code will actually make a working application that can save and load files. It </span></div>
<div class=ts149p43><span class="ft5p149">can prompt the user for a date to open and error check to make sure that the date is not </span></div>
<div class=ts149p44><span class="ft5p149">loaded. It will make sure that the user cannot accidentally unload a schedule without </span></div>
<div class=ts149p46><span class="ft5p149">saving it. Further, it will print the schedule as well. In all, this is surprisingly little code to </span></div>
<div class=ts149p47><span class="ft5p149">accomplish all of this functionality.&nbsp; </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
